import request from '../utils/request'

// 资料编辑
export function getUserInfo(data) {
	return request(data, "/api/member/get_userinfo").then(res => res)
}

export function EditUserInfo(data) {
	return request(data, "/api/member/edit_userinfo").then(res => res)
}

//我的足迹
export function footPrint(data) {
	return request(data, "/smallroutine/program/footprint").then(res => res)
}
export function delFootprint(data) {
	return request(data, "/smallroutine/program/footprint_del").then(res => res)
}

//我的收藏
export function myCollect(data) {
	return request(data, "/smallroutine/program/supply_collect").then(res => res)
}
export function delCollect(data) {
	return request(data, "/smallroutine/program/check_collect").then(res => res)
}

//收货地址
export function address(data) {
	return request(data, "/api/address/list").then(res => res)
}
export function setDefault(data) {
	return request(data, "/api/address/set_default").then(res => res)
}
export function delAddress(data) {
	return request(data, "/api/address/del").then(res => res)
}
export function NewAddress(data) {
	return request(data, "/api/address/add").then(res => res)
}
export function EditAddr(data) {
	return request(data, "/api/address/edit").then(res => res)
}

//我的资产
export function TotalAssets(data) {
	return request(data, "/api/consume/my_total_assets").then(res => res)
}
export function SwitchWork(data) {
	return request(data, "/smallroutine/program/switch_work").then(res => res)
}
export function UserCoupon(data) {
	return request(data, "/smallroutine/program/user_coupon").then(res => res)
}
export function VipCard(data) {
	return request(data, "/weixinpl/mshop/vip_card.class.php").then(res => res)
}
export function myCurrencyList(data) { //购物币
	return request(data, '/api/consume/my_currency_list').then(res => res)
}
export function ShoppingMoney(data) { //购物币
	return request(data, '/smallroutine/Reward/shopping_money').then(res => res)
}

export function paySet(data) { // 获取支付密码
	return request(data, "/smallroutine/program/pay_set").then(res => res)
}
export function payPass(data) { //保存密码
	return request(data, '/smallroutine/program/pay_pass').then(res => res)
}

export function WeixinLogin(data) { // 微信登录
	return request(data, "/api/login/weixinlogin")
}
//
export function getAuth(data) {
	return request(data, "/api/Login/authlogin")
}

export function PersonalMsg (data) {
	return request(data, "/smallroutine/Reward/personal_message")
}

//支付方式
export function payList(data) {
	return request(data, "/smallroutine/reward/pay_type")
}

export function oPayList(data) {
	return request(data, "/smallroutine/program/pay_type")
}

//创建订单
export function getSendMoney(data) {
	return request(data, "/smallroutine/program/sendMoneya")
}

export function getFullCut(data) {
	return request(data, "/smallroutine/program/fullCutHandle")
}

export function JuriSdi(data) {
	return request(data, "/smallroutine/program/Jurisdi")
}

export function ScoreSelect(data) {
	return request(data, "/smallroutine/program/score_select")
}

export function PrivateStore(data) {
	return request(data, "/smallroutine/program/Private_store")
}

export function getCoupon(data) {
	return request(data, "/smallroutine/program/coupon")
}

export function CreteOrder(data) {
	return request(data, "/api/order/create")
}

// 个人资产 -- 记录
export function CurrencyRecord(data) {
	return request(data, "/smallroutine/reward/currencyRecord").then(res => res)
}

export function GetMoneyDetails(data) {
	return request(data, "/smallroutine/Reward/get_moneyDetails").then(res => res)
}

export function MoneyCash(data) {
	return request(data, "/smallroutine/Reward/money_tocash").then(res => res)
}

export function SavePayAccount(data) {
	return request(data, "/smallroutine/Reward/save_pay_account").then(res => res)
}

export function MyAlipay(data) {
	return request(data, "/smallroutine/Reward/my_alipay").then(res => res)
}

export function cash(data) {
	return request(data, "/smallroutine/Reward/cash").then(res => res)
}

export function cashMoney(data) {
	return request(data, "/smallroutine/Reward/save_tocash").then(res => res)
}

export function cashLog(data) {
	return request(data, "/smallroutine/Reward/my_cash_log").then(res => res)
}

export function showCard(data) {
	return request(data, "/smallroutine/Reward/show_card").then(res => res)
}

export function ScoreSign(data) {
	return request(data, "/smallroutine/Reward/score_sign").then(res => res)
}

export function ScoreRecord(data) {
	return request(data, "/smallroutine/Reward/score_record").then(res => res)
}

export function signDay(data) {
	return request(data, "/smallroutine/Reward/singOnclik").then(res => res)
}
export function distribution(data) {
	return request(data, "/smallroutine/Reward/distribution").then(res => res)
}
export function myPrivilege(data) {
	return request(data, "/smallroutine/Reward/my_privilege").then(res => res)
}

export function orderList (data) {
	return request(data, "/smallroutine/program/order_status").then(res => res)
}
export function orderAll (data) {//全部订单
	return request(data, "/plat/Shop/order_all").then(res => res)
}
export function orderIndex (data) {
	return request(data, "/smallroutine/program/order_index").then(res => res)
}

export function packageOrder (data) {
	return request(data, "/smallroutine/reward/pake_order_list").then(res => res)
}

export function personalPay (data){
	return request(data,'/api/order/personal_pay').then(res => res)
}

export function packagePay (data) {
	return request(data, '/smallroutine/reward/pay').then(res => res)
}

export function productVirtual (data){
	return request(data,'/api/order/product_virtual').then(res => res)
}

export function orderRemind (data) { // 提现发货
	return request(data, '/api/order/shop_remind').then(res => res)
}

export function Comment (data) { // 评论
	return request(data, "/smallroutine/program/evel").then(res => res)
}

export function confirmOrder (data) { // 订单确认收货
	return request(data, "/api/order/confirm_order").then(res => res)
}

export function Refund (data) { // 原因
	return request(data, "/smallroutine/program/refund").then(res => res)
}

export function Orfund (data) { // 退货
	return request(data, "/api/order/refund").then(res => res)
}

export function Reasonfund (data) { // 退款
	return request(data, "/api/order/orderRefund").then(res => res)
}

export function CancelOrder (data) {  // 取消订单
	return request(data, "/api/order/cancel").then(res => res)
}

export function expressData(data) { // 物流信息
	return request(data, '/smallroutine/program/expressData').then(res => res)
}

export function GiveMoneyId (data) {
	return request(data, "/api/moneybag/choose_user").then(res => res)
}

export function SaveMoney (data) {
	return request(data, "/api/moneybag/save_money_send").then(res => res)
}

//搜索
export function searchList (data) {
	return request(data, "/smallroutine/program/product_order").then(res => res)
}

export function About (data) {
	return request(data, "/smallroutine/Program/app_abount").then(res => res)
}

export function BagConfirm (data) {
	return request(data, "/weixinpl/mshop/save_order_confirm.php").then(res => res)
}

export function BagConcel (data) {
	return request(data, "/weixinpl/mshop/save_package_order_cancel.php").then(res => res)
}